import request from '@/utils/request'

// 查询供方报价列表
export function listZcSupplierQuotation(query) {
  return request({
    url: '/sales/ZcSupplierQuotation/list',
    method: 'get',
    params: query
  })
}

// 查询供方报价详细
export function getZcSupplierQuotation(id) {
  return request({
    url: '/sales/ZcSupplierQuotation/' + id,
    method: 'get'
  })
}

// 新增供方报价
export function addZcSupplierQuotation(data) {
  return request({
    url: '/sales/ZcSupplierQuotation',
    method: 'post',
    data: data
  })
}
//报价确认
export function confirmZcSupplierQuotation(data) {
  return request({
    url: '/sales/ZcSupplierQuotation/confirm',
    method: 'post',
    data: data
  })
}

// 修改供方报价
export function updateZcSupplierQuotation(data) {
  return request({
    url: '/sales/ZcSupplierQuotation',
    method: 'put',
    data: data
  })
}

// 删除供方报价
export function delZcSupplierQuotation(id) {
  return request({
    url: '/sales/ZcSupplierQuotation/' + id,
    method: 'delete'
  })
}
